$(function () {
  var layTable = null
	layui.use('table', function () {
    var table = layui.table
    layTable = table

		table.render({
			elem: '#examinee-table',
			url: '/Do/MS/queryMsBatchFileJson?' + $("#searchform").serialize(), //数据接口
			page: true,
			cols: [
				[
		      { type:'checkbox', fixed:'left', width: 50 },
					{ field: 'examName', title: '考生编号', width: '7%'},
					{ field: 'c', title: '考生姓名', width: '8%' },
					{ field: 'b', title: '身份证号', width: '15%' },
          { field: 'a', title: '手机号码	', width: '10%' },
					{ field: 'lastEditName', title: '	考生组织', width: '60%' },
				],
			],
    })
  })
  
  $('.examineeManage #examinee_add').on('click', function() {
    layer.open({
      type: 1,
      title: '添加组织',
      content: $('#add-examinee'),
      offset: '30px',
      area: ['500px', '265px']
    })
  })

  $('.examineeManage #examinee_edit').on('click', function() {
    layer.open({
      type: 1,
      title: '修改组织',
      content: $('#edit-examinee'),
      offset: '30px',
      area: ['500px', '325px']
    })
  })
})
